package cn.fuxi2022.model.empty.auth;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 社员表
 * </p>
 *
 * @author Fuxi
 * @since 2022-09-19 22:19:30
 */
@Getter
@Setter
@TableName("group_student")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class GroupStudent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @TableField("openid_gz")
    private String openidGz;

    @TableField("openid_xcx")
    private String openidXcx;

    @TableField("union_id")
    private String unionId;

    @TableField("mobile")
    private String mobile;

    @TableField("nickname")
    private String nickname;

    @TableField("sex")
    private Integer sex;

    @TableField("age")
    private Integer age;

    @TableField("avatar")
    private String avatar;

    @TableField("point")
    private BigDecimal point;

    @TableField("sign")
    private String sign;

    @TableField("is_disabled")
    private Boolean disabled;

    @TableField("is_deleted")
    @TableLogic(value = "0", delval = "1")
    private Boolean deleted;

    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    @JsonIgnore
    private Date gmtCreate;

    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    @JsonIgnore
    private Date gmtModified;
}
